package com.qijia.travel.domain;

import java.lang.reflect.Method;

import com.qijia.travel.helper.ObjectHelper;

public class TouristGroup {

	private Integer touristGroupId;
	private String touristGroupSn;
	private Integer agencyMissionId;
	private String touristGroupType;
	private String customerSourse;
	private Integer customerNum;
	private String touristFile;

	public Integer getTouristGroupId() {
		return touristGroupId;
	}

	public void setTouristGroupId(Integer touristGroupId) {
		this.touristGroupId = touristGroupId;
	}

	public String getTouristGroupSn() {
		return touristGroupSn;
	}

	public void setTouristGroupSn(String touristGroupSn) {
		this.touristGroupSn = touristGroupSn;
	}

	public Integer getAgencyMissionId() {
		return agencyMissionId;
	}

	public void setAgencyMissionId(Integer agencyMissionId) {
		this.agencyMissionId = agencyMissionId;
	}

	public String getTouristGroupType() {
		return touristGroupType;
	}

	public void setTouristGroupType(String touristGroupType) {
		this.touristGroupType = touristGroupType;
	}

	public String getCustomerSourse() {
		return customerSourse;
	}

	public void setCustomerSourse(String customerSourse) {
		this.customerSourse = customerSourse;
	}

	public Integer getCustomerNum() {
		return customerNum;
	}

	public void setCustomerNum(Integer customerNum) {
		this.customerNum = customerNum;
	}

	public String getTouristFile() {
		return touristFile;
	}

	public void setTouristFile(String touristFile) {
		this.touristFile = touristFile;
	}
	
	public String toString() {
		Method[] ms = this.getClass().getDeclaredMethods();
		String s = "";
		for (Method m : ms) {
			if (m.getName().indexOf("get") != 0)
				continue;
			try {
				s += m.getName() + "-->"
						+ ObjectHelper.invokeMethod(this, m.getName()) + " \n ";
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return s;
	}

}